package com.okonna.selenium.tide.eventhandlers.genericevents;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Shell;

public class ExitListener implements SelectionListener
{
	private Shell shParent;
	
	public ExitListener(Shell tmpParent)
	{
		shParent = tmpParent;
	}
	

	@Override
	public void widgetSelected(SelectionEvent e) 
	{
		shParent.close();
	}

	@Override
	public void widgetDefaultSelected(SelectionEvent e) 
	{
    	System.out.println("WTF does 'widgetDefaultSelected(SelectionEvent event)' do?");
	}
}
